<div class="row">
  	<div class="col-lg-6">
    	<ul class="nav nav-pills" role="tablist">
		  	<li role="presentation"><a href="javascript:;" ng-click="addGoods()">增加商品</a></li>
		  	<li role="presentation"><a href="javascript:;" id="updateGoods" ng-click="updateGoods()">修改商品</a></li>
		  	<li role="presentation"><a href="javascript:;" id="delGoods" ng-click="delGoods()">删除商品</a></li>
		</ul>
  	</div><!-- /.col-lg-6 -->
  	<div class="col-lg-3 col-md-offset-3">
    	<div class="input-group">
 			<input type="text" ng-model="selecttxt" class="form-control">
      		<span class="input-group-btn">
        		<button class="btn btn-default" ng-click="selectgoods()" type="button">Go!</button>
      		</span>
    	</div><!-- /input-group -->
  	</div><!-- /.col-lg-6 -->
</div><!-- /.row -->
		

<wbc-table datasource="goods" columns="cols" paging="true"></wbc-table>

<!--分页-->
<nav>
  	<ul id="pagingUl" class="pagination pull-right" style="margin-top: -10px;">
	  	<li><a href="#">&laquo;</a></li>
	  	<li ng-click="jumpPage();" ng-repeat="cpage in pageArr" ng-class="{'active': page==cpage}"><a href="javascript:;">{{$index + 1}}</a></li>
	  	<li><a href="#">&raquo;</a></li>
  	</ul>
</nav>

<loading></loading>

<!--modal-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close"
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabeltit">
               	
            </h4>
         </div>
         <div class="modal-body">
            <form class="form-horizontal" role="form">
			  <div class="form-group">
			    <label for="inputEmail3" class="col-sm-2 control-label">商品名称</label>
			    <div class="col-sm-7">
			      <input type="text" class="form-control" ng-model="goodsname" id="name" placeholder="请输入商品名称">
			      <input id="gid" type="hidden" value="" />
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword3" class="col-sm-2 control-label">商品价格</label>
			    <div class="col-sm-3">
			      <input type="text" class="form-control" ng-model="goodsprice" id="price" placeholder="请输入商品价格">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="inputPassword3" class="col-sm-2 control-label">商品介绍</label>
			    <div class="col-sm-7">
			      <textarea id="details" class="form-control" ng-model="goodsdetail" rows="5" placeholder="请输入商品介绍"></textarea>
			    </div>
			  </div>
			 <div class="form-group">
			    <label for="inputPassword3" class="col-sm-2 control-label">商品类别</label>
			    <div class="col-sm-3">
			      <select id="classify" class="form-control" ng-model="goodsclassify">
			      	  <option value="0">--请选择--</option>
					  <option>数码</option>
					  <option>家电</option>
					  <option>服装</option>
					  <option>生活用品</option>
					  <option>母婴</option>
				   </select>
			    </div>
			  </div>
			  
			</form>

         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-default"data-dismiss="modal">
            	取消
            </button>
            <button id="saveBtn" type="button" class="btn btn-primary" ng-click="saveGoods()">
             	保存
            </button>
         </div>
      </div>
</div>
<!--modal-->

